<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
	<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css" type="text/css" />
	<script type="text/javascript" src="/hrs-intranet/custom/js/calendarFix.js"></script>
</head>
 
 
<s:form validate="true" cssClass="formClass">
 <s:hidden key="personId"/>
 <s:hidden key="requestId"/>
 <s:hidden key="editSelected"/>
 <s:hidden key="actionMethod" value="%{actionMethod}"/>

<s:if test="hasFieldErrors()">
	<div class="oldErrorMsg">
		<h4 class="oldErrorTitle">Error(s) with submission:</h4>
		<s:iterator value="fieldErrors">
			<s:iterator value="value">
				<li>
					<font class="errorMsgFont">
						<s:property/>
					</font>
				</li>
			</s:iterator>
		</s:iterator>
	</div>
	<br/>
	<br/>
</s:if>
 
 <!-- Aca hay que modificar esto para que  Muestre la lista de FamiliarRelationshipTypes. -->
 <sx:autocompleter
        list="familiarRelationShipTypes"
        searchType="startword"
        showDownArrow="false"
        name="familiarRelationshipType"        
        label="Relative Type"
        autoComplete="false"       
        required="true"
        disabled="%{editSelected}"
 /> 
 <s:textfield key="fullName" readonly="%{readOnly}" label="Name/Last Name" required="true" />
 <sx:datetimepicker key="birthday" label="Birthday" required="true" displayFormat="dd/MM/yyyy" valueNotifyTopics="/value"/> 
 <s:textfield key="dni" readonly="%{readOnly}"  label="DNI"  /> 
 <s:textfield key="cuilOrCuit" readonly="%{readOnly}" label="CUIL" />
<!-- <s:submit action="%{actionMethod}" value="OK" cssClass="btn"/>-->

		<s:submit action="%{actionMethod}" key="OK" cssClass="btn" cssStyle="position:relative; left:-95px;" id="okbutton"/>
		<s:url id="list_action" action="TimeOffAction_list" />
<!--		<s:a href="%{list_action}" cssClass="btnCancel" >Cancel</s:a>-->
		<s:submit action="%{actionMethod}" key="Cancel" cssClass="btnCancel" method="list" cssStyle="position:relative; left:0px; top:-25px; _top:-27"/>


</s:form>

<!--<s:url id="list_action" action="FamiliarRelationshipAction_list" >-->
<!-- <s:param name="employeeId">%{employeeId}</s:param>-->
<!--</s:url>-->
<!--<s:a href="%{list_action}" cssClass="Add">Cancel</s:a>-->
